﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using Backend;
using Data_Layer;

namespace WCFService
{
    [ServiceContract]
    public interface ISOAPService
    {
        //USER Methods   
        
        [OperationContract]
        void createUser(string username, string password, int balance);

        [OperationContract]
        void deleteUser(string username);

        [OperationContract]
        void updateUser(string username, string password, int balance);

        [OperationContract]
        void updateUserbalance(string username, int balance);

        [OperationContract]
        Users readUser(string username);

        [OperationContract]
        List<Users> getallUsers();

        // USERSBOOKING Methods

        [OperationContract]
        void createUsersBooking(string username, int bookingNO);

        [OperationContract]
        void deleteUsersBooking(string username);

        [OperationContract]
        UsersBooking readUsersBooking(string username);

        [OperationContract]
        List<UsersBooking> getallUsersBooking();

        [OperationContract]
        List<UsersBooking> getallUsersBookingsbyUsername(string UserName);

        //BOOKING Methods

        [OperationContract]
        List<Booking> getallBookingsbybookingNO(int bookingnumber);

        



    }
}

